<h1>New hub_widget</h1>

<%= error_messages_for :hub_widget %>

<% form_for(:hub_widget, @hub_widget, :url => hub_hub_widgets_path(@hub)) do |f| %>
  <p>
    <b>Widget</b><br />
    <%= f.collection_select :widget_id, Widget.find(:all), :id, :name %>
  </p>

  <p>
    <b>Size</b><br />
    <%= f.text_field :size, :size => 3 %> rows
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', hub_hub_widgets_path(@hub) %>
